import sqlite3

con = sqlite3.connect('hao.db')
t = con.cursor()
file = open('FUNDS.sql','r',encoding='utf-8')
sql = file.read()
t.executescript(sql)
con.commit()
con.close()

def Find_Top():
    con = sqlite3.connect('hao.db')
    t = con.cursor()
    c = t.execute('select * from funds order by SYL_5N desc')
    print(c.fetchall()[0])

Find_Top()


